package com.dowsure.apisaas.enums;

public enum SellerStatusDetailEnums {

    PENDING("PENDING", "待定"),
    BLOCKED("BLOCKED", "锁定"),
    TERMINATED("TERMINATED", "结束");

    private String value;

    private String describe;

    SellerStatusDetailEnums(String value, String describe){
        this.value = value;
        this.describe = describe;
    }

    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return String.valueOf(value);
    }

    public static SellerStatusDetailEnums fromValue(String text) {
        for (SellerStatusDetailEnums b : SellerStatusDetailEnums.values()) {
            if (String.valueOf(b.value).equals(text)) {
                return b;
            }
        }
        return null;
    }

}
